package deibay.client.commands;

import java.util.Vector;

import deibay.client.Command;
import deibay.client.Controller;
import deibay.messages.Message;
import deibay.messages.SendItemsListMsg;
import deibay.util.Pair;

public class SendItemsListCommand extends Command{

	public SendItemsListCommand(Controller controller, Message msg) {
		super(controller, msg);		
	}

	@Override
	public void execute() {		
		Vector<Pair<String,String>> items = ((SendItemsListMsg)message).getItems();		
		controller.getBidderController().getBidderView().setItems(items);
	}

}
